﻿#include "solution.hpp"

void minOperations()
{
    Solution s;
    vector<int> nums = {1,1,4,2,3};
    cout << s.minOperations(nums, 5) << endl;
}

void totalFruit()
{
    Solution s;
    vector<int> nums = { 3,3,3,1,2,1,1,2,3,3,4 };
    cout << s.totalFruit(nums) << endl;
}

void findAnagrams()
{
    Solution s;
    string str1 = "abab";
    string str2 = "ab";
    vector<int> nums= s.findAnagrams(str1, str2);
    for (auto e : nums)
        cout << e << " ";
    cout << endl;
}

void findSubstring()
{
    Solution s;
    string str1 = "aaaaaaaaaaaaaa";
    vector<string> str2 = { "aa", "aa" };
    vector<int> nums = s.findSubstring(str1, str2);
    for (auto e : nums)
        cout << e << " ";
    cout << endl;
}

void minWindow()
{
    Solution s;
    string str1 = "ADOBECODEBANC";
    string str2 = "ABC";
    string str = s.minWindow(str1, str2);
    for (auto e : str)
        cout << e << " ";
    cout << endl;
}
